package cn.aitrox.ry.service.anno.mapper;

import cn.aitrox.ry.service.anno.entity.TaskEntity;
import cn.aitrox.ry.service.anno.entity.UserTaskEntity;
import cn.aitrox.ry.service.anno.po.user.task.UserTaskFindCondPo;
import com.github.abel533.mapper.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserTaskMapper extends Mapper<UserTaskEntity> {

    List<TaskEntity> findTaskByCond(UserTaskFindCondPo cond);

    void batchInsert(@Param("list") List<UserTaskEntity> list);

    List<UserTaskEntity> findByUserIdStatusOrderBy(@Param("userId")Integer userId, @Param("statusArr")Integer[] statusArr, @Param("orderByParam") String orderByParam);

    List<UserTaskEntity> findByUserIdTaskIds(@Param("userId")Integer userId, @Param("taskIds")List<Integer> taskIds);
}
